package com.tao.YanMoDesignPattern.observer.case1_Newspaper;

import com.tao.YanMoDesignPattern.observer.pattern.Subject;

/**
 * @Author Mi_Tao
 * @Date 2023/7/23
 * @Description
 * @Version 1.0
 **/
public class NewsPaper extends Subject {

    // 具体的报纸内容
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
        // 内有有了，说明出报纸了，那就通知所有的读者(观察者)
        notifyObservers();
    }
}
